Skip to content

chore(deps): update dependencies to resolve all npm audit CVEs - #11122

Merged
Bas950 merged 1 commit into
mainfrom
chore/dependency-updates
Aug 21, 2026
Merged

chore(deps): update dependencies to resolve all npm audit CVEs#11122
Bas950 merged 1 commit into
mainfrom
chore/dependency-updates

Conversation

@Bas950

@Bas950 Bas950 commented Aug 21, 2026

Copy link
Copy Markdown
Member

Summary

Updates dependencies across all three manifests (root, cli/, docs/) to resolve every open npm CVEnpm audit now reports 0 vulnerabilities in all three lockfiles.

Security fixes

cli/ (also inherited by the root lockfile via pmd: file:cli):

  • adm-zip ^0.5.17^0.6.0GHSA-xcpc-8h2w-3j85 (crafted ZIP 4GB allocation). Only addLocalFile/writeZip are used; API unchanged, CLI tests pass.
  • sharp ^0.34.5^0.35.3 — libvips CVE-2026-33327/33328/35590/35591. Only sharp().metadata() is used; tests pass.
  • Removed @types/got — deprecated stub for got v9 that pulled in the critical form-data <2.5.4 advisory (GHSA-fjxv-7rqg-78g4). got v15 ships its own types; nothing imported the stub.
  • ws ^8.20.0^8.21.3 (direct) and nested discord-rpcws refreshed to 7.5.13 — GHSA-58qx-3vcg-4xpx, GHSA-96hv-2xvq-fx4p.
  • Transitives refreshed via lockfile: undici, vite 8.0.x, postcss, picomatch, nanoid, brace-expansion, fast-uri, form-data, esbuild 0.28.2.

docs/:

  • vitepress ^1.6.4^2.0.0-alpha.19 — vitepress 1.x pins vite 5 / esbuild 0.21, which have unfixable-in-range advisories (GHSA-67mh-4wv8-2f99 and the vite ≤6.4.2 alerts). The 2.x alpha rides vite 8.2 / esbuild 0.25+; npm run build renders the site cleanly. This is the only route to 0 CVEs in docs.
  • markdown-it ^14.1.1^15.0.0GHSA-6v5v-wf23-fmfq (also clears linkify-it GHSA-v245-v573-v5vm).
  • Transitives refreshed: rollup, preact, postcss, nanoid, mdast-util-to-hast.

Non-security updates

  • root: eslint ^10.8.1, @antfu/eslint-config ^8.3.0, eslint-plugin-json-schema-validator ^6.3.1, vitest/@vitest/* ^4.1.11, @types/node ^25.9.5
  • cli: @inquirer/prompts ^8.6.0, got ^15.1.0, semver ^7.8.5, globby ^16.2.4, ora ^9.4.1, esbuild ^0.28.2, @types/* bumps, vitest family ^4.1.11

Deliberately left out (available majors, not CVE-related)

ESLint config fix

@antfu/eslint-config 8.3.0 changed unscoped config blocks to default-ignore markdown files (setDefaultIgnores + GLOB_MARKDOWN), which silently disabled the repo's existing markdown/no-multiple-h1 / markdown/heading-increment overrides and resurfaced 6 errors in .github/CONTRIBUTING.md and two activity readmes. The overrides are now scoped to files: ['**/*.md'] in eslint.config.mjs, restoring the previous behavior.

Verification

  • npm audit: 0 vulnerabilities in root, cli/, and docs/
  • cli: tsc build clean, all 34 vitest tests pass
  • docs: vitepress build completes on 2.0.0-alpha.19 (vite 8.2.2)
  • Full eslint . on this branch was diffed against a main worktree with the old lockfile: the identical 574 pre-existing errors (mostly ts/no-deprecated — these feed the code-scanning alerts via the SARIF upload; the workflow is continue-on-error) and zero new findings after the config fix.

Notes

@Bas950
Bas950 requested a review from a team August 21, 2026 09:10
@Bas950 Bas950 added dependencies Pull requests that update a dependency file repo maintenance General repo maintenance, including updating tools etc chore labels Aug 21, 2026
@Bas950
Bas950 force-pushed the chore/dependency-updates branch from e2dfa4b to db31879 Compare August 21, 2026 09:40
@theusaf
theusaf requested a review from a team August 21, 2026 18:39
- cli: adm-zip ^0.6.0, sharp ^0.35.3, ws ^8.21.3, drop deprecated @types/got
- docs: vitepress 2.0.0-alpha.19 (vite 8), markdown-it ^15
- root: eslint ^10.8.1, @antfu/eslint-config ^8.3.0, vitest ^4.1.11
- eslint.config.mjs: scope markdown rule overrides to **/*.md (required
  since @antfu/eslint-config 8.3.0 default-ignores markdown in unscoped
  config blocks)

npm audit now reports 0 vulnerabilities in all three lockfiles.
@Bas950
Bas950 force-pushed the chore/dependency-updates branch from db31879 to 1eec4b4 Compare August 21, 2026 20:11
@Bas950
Bas950 merged commit d7a8204 into main Aug 21, 2026
9 checks passed
@Bas950
Bas950 deleted the chore/dependency-updates branch August 21, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore dependencies Pull requests that update a dependency file repo maintenance General repo maintenance, including updating tools etc

Development

Successfully merging this pull request may close these issues.

3 participants